package com.gengzp.common.model.permission.req;

import com.gengzp.common.document.annotations.ApiModel;
import com.gengzp.common.document.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * @ClassName AssignRoleToUserReq
 * @Description 为用户分配角色请求实体
 * @Author gengzp
 * @Date 2025/5/17 0:06
 */
@Data
@ApiModel(description = "为用户分配角色请求实体")
public class AssignRoleToUserReq implements Serializable {

    @Serial
    private static final long serialVersionUID = -8017997552563778701L;

    /**
     * 用户id
     */
    @NotBlank(message = "用户id不能为空")
    @ApiModelProperty(value = "用户id", required = true)
    private String userId;

    /**
     * 角色id集合
     */
    @NotNull(message = "角色id集合不能为空")
    @ApiModelProperty(value = "角色id集合", required = true, collectionGenericClass = String.class)
    private List<String> roleIds;

}
